package cn.tedu.tmall.front.mall.service;

import cn.tedu.tmall.common.pojo.authentication.CurrentPrincipal;
import cn.tedu.tmall.front.mall.pojo.entity.ReceiverAddress;
import cn.tedu.tmall.front.mall.pojo.param.ReceiverAddressAddNewParam;
import cn.tedu.tmall.front.mall.pojo.param.ReceiverAddressUpdateParam;
import cn.tedu.tmall.front.mall.pojo.vo.ReceiverAddressListItemVO;
import cn.tedu.tmall.front.mall.pojo.vo.ReceiverAddressStandardVO;

import java.util.List;

public interface IReceiverAddressService {
    void addNew(CurrentPrincipal principal,ReceiverAddressAddNewParam addNewParam);
    void deleteById(Long id);
    void updateById(CurrentPrincipal principal, Long id, ReceiverAddressUpdateParam updateParam);
    //查询单个收货地址
    ReceiverAddressStandardVO selectById(CurrentPrincipal principal,Long id);
    //查询收货地址列表
    List<ReceiverAddressListItemVO> listByUserId(CurrentPrincipal principal);
}
